package com.wn.aop1.around;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class LogAroundHandler implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        Object result= null;
        System.out.println("添加日志前");

        result = invocation.proceed();

        System.out.println("添加日志后");
        return result;
    }
}
